<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<style>
    .textBox {
        max-height: 500px;
        height: 200px;
        width: 900px;
        border-width: 1px;
        border-color: black;
        border-style: solid;
    }

    #textArea {
        overflow: auto;
        max-height: 180px;
    }
</style>
<div>
    <div class="textBox">
        <ul id="textArea">

        </ul>
    </div>
    <div>
        <input id="sendMessage" style="width:400px;">
        <button id="startBtn">连接</button>
        <button id="sendBtn">发送</button>
        <button id="closeBtn">断开</button>
    </div>
</div>
</body>
<script src="../../plugins/jquery/jquery-3.2.1.min.js"></script>
<script src="socket/socketMethod.js"></script>
<script src="socket/textLive.js"></script>
</html>